package com.tianji.api.client.remark;

import com.tianji.api.client.learning.fallback.LearningClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Set;

@FeignClient(value = "remark-service", fallbackFactory = LearningClientFallback.class)
public interface RemarkClient {

    /**
     * 判断当前用户是否点赞了指定的业务
     *
     * @param bizIds
     * @return
     */
    @GetMapping("/likes/list")
    public Set<Long> getLikesStatus(@RequestParam("bizIds") Iterable<Long> bizIds);

}
